/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-09-03 22:17:46
 * @LastEditors: turingchang
 * @LastEditTime: 2020-12-25 16:57:52
 */

module.exports = app => {
    const {router,controller} = app;
    const namespace = `/api/${app.config.xsoaHandler.localServerName}/home`;
    const homeRouter = router.namespace(namespace);
    homeRouter.get('/', controller.home.home.list);
    
    // router.redirect('/news/list','/news');//重定向使用router而不是adminRouter
} 